package org.news.service.Impl;

import org.news.Mapper.adminMapper;
import org.news.entity.admin;
import org.news.service.adminService;
import org.news.tool.MD5Util;

public class adminServiceImpl implements adminService{

	public static MD5Util md5Util;
	
	private adminMapper adminMapper;

	public void setAdminMapper(adminMapper adminMapper) {
		this.adminMapper = adminMapper;
	}

	@Override
	public Integer addAdmin(admin admin) {
	    return adminMapper.addAdmin(admin);
	}

	@Override
	public admin loginAdmin(admin admin) {	
		
		return adminMapper.loginAdmin(admin);
	}

}
